package sz.szsmk.citizencard.model.network.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/7/12 16:36
 * description:
 */
public class PrepayResponse extends BaseBean {


    /**
     * websiteListInfo : [{"id":3,"telephone":null,"shopName":"中国农业银行吴中支行车坊分理处","address":"农行吴中支行车坊分理处","distance":8000,"longitude":120.673376,"latitude":31.326877,"picUrl":null},{"id":2250,"telephone":"4009306868","shopName":"地铁4号线姚祥站（市民卡自助售卡充值机）","address":"地铁4号线姚祥站内市民卡自助售卡充值机","distance":8000,"longitude":120.604723,"latitude":31.39625,"picUrl":null},{"id":2255,"telephone":"4009306868","shopName":"地铁4号线北寺塔站（市民卡自助售卡充值机）","address":"地铁4号线北寺塔路内市民卡自助售卡充值机","distance":8000,"longitude":120.625988,"latitude":31.327014,"picUrl":null}]
     * code : 000000
     * message : 操作成功
     */

    private List<WebsiteListInfoBean> websiteListInfo;

    public List<WebsiteListInfoBean> getWebsiteListInfo() {
        return websiteListInfo;
    }

    public void setWebsiteListInfo(List<WebsiteListInfoBean> websiteListInfo) {
        this.websiteListInfo = websiteListInfo;
    }

    public static class WebsiteListInfoBean implements Parcelable{
        /**
         * id : 3
         * telephone : null
         * shopName : 中国农业银行吴中支行车坊分理处
         * address : 农行吴中支行车坊分理处
         * distance : 8000
         * longitude : 120.673376
         * latitude : 31.326877
         * picUrl : null
         */

        private int id;
        private String telephone;
        private String shopName;
        private String address;
        private int distance;
        private double longitude;
        private double latitude;
        private String picUrl;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getDistance() {
            return distance;
        }

        public void setDistance(int distance) {
            this.distance = distance;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.telephone);
            dest.writeString(this.shopName);
            dest.writeString(this.address);
            dest.writeInt(this.distance);
            dest.writeDouble(this.longitude);
            dest.writeDouble(this.latitude);
            dest.writeString(this.picUrl);
        }

        public WebsiteListInfoBean() {
        }

        protected WebsiteListInfoBean(Parcel in) {
            this.id = in.readInt();
            this.telephone = in.readString();
            this.shopName = in.readString();
            this.address = in.readString();
            this.distance = in.readInt();
            this.longitude = in.readDouble();
            this.latitude = in.readDouble();
            this.picUrl = in.readString();
        }

        public static final Creator<WebsiteListInfoBean> CREATOR = new Creator<WebsiteListInfoBean>() {
            @Override
            public WebsiteListInfoBean createFromParcel(Parcel source) {
                return new WebsiteListInfoBean(source);
            }

            @Override
            public WebsiteListInfoBean[] newArray(int size) {
                return new WebsiteListInfoBean[size];
            }
        };
    }
}
